#ifndef ENEMYBULLET_H
#define ENEMYBULLET_H
#include<QGraphicsItem>
#include<QFileInfo>
#include<QPainter>
class EnemyBullet:public QGraphicsItem
{
public:
    EnemyBullet(QGraphicsScene *m_scene);
    virtual QRectF boundingRect() const;
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
    virtual void advance(int phase);
    bool isVisible() const;
    void setVisible(bool visible);

    QString root;
    QGraphicsScene *scene;
    double speed;
    QList<QPixmap> pix;
    int Times;
    int state;
};

#endif // ENEMYBULLET_H
